<template>
  <div class="vm">
    <span :class="['tag-text',type?'tag-text__'+type:'','tag-text__'+size]">{{text}}</span>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: {
    text: String,
    type: String,
    size: String
  },
  methods: {}
};
</script>
<style lang="scss" scoped>
@import "@/styles/scss/_available.scss";
.tag-text {
  border: 1px solid #888;
  color:#888;
  display: inline-block;
  // vertical-align: middle;
  border-radius: 2px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.5;

  &__success {
    border-color: $success;
    color: $success;
  }
  &__warning {
    border-color: $warning;
    color: $warning;
  }
  &__error {
    border-color: $error;
    color: $error;
  }
  &__medium {
    padding: 0 10px;
    line-height: 2;
    border-radius: 3px;
  }
  &_small {
    padding: 0 6px;
    line-height: 1.5;
  }
  &_mini {
    padding: 0 4px;
    line-height: 1.3;
  }
}
</style>
